<% title "Departments" %>
<%= render :partial => 'breadcrumbs' %>

<table class="admin_listing">
  <tr>
    <th>Title</th><th></th><th></th><th></th>
  </tr>

<% @departments.each do |department| %>
  <tr>
    <td><%=h department.title %></td>
    <td><%= link_to 'Show', department %></td>
    <td><%= link_to 'Edit', edit_department_path(department) %></td>
    <td><%= link_to 'Destroy', department, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New department', new_department_path %>